//
// Created by miaomiaole on 2023/3/30.
//

#ifndef CMAKECXX_PET_H
#define CMAKECXX_PET_H

#include <istream>
#include <string>

using namespace std;

namespace Pet1 {
    class Pet {
        string pname;
    public:
        Pet(const string &name) : pname(name) {

        }

        virtual string name() const;

        virtual string description() const;
    };

    class Dog : public Pet {
        string favoriteActivity;

    public:
        Dog(const string &name, const string &activity) : Pet(name), favoriteActivity(activity) {};

        string description() const;

        void describe(Pet p);
    };
}


#endif //CMAKECXX_PET_H
